package com.itttq.kb.model.to;

import java.io.Serializable;

public class PageParamTo implements Serializable {
	private static final long serialVersionUID = 6550354541114971167L;
	/** 起始值 */
	private int start = 0;
	/** 每页数量 */
	private int size = 20;
	/** 当前页码 */
	private int no = 1;
	/** 数据总数 */
	private int count = 0;

	public PageParamTo() {}

	public PageParamTo(int i) {
		this.size = i;
	}


	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public int getStart() {
		return start;
	}

	public void setStart(int start) {
		this.start = start;
	}

	public int getSize() {
		return size;
	}

	public void setSize(int size) {
		this.size = size;
	}

	public int getNo() {
		return no;
	}

	public void setNo(int no) {
		this.no = no;
		setStart((this.no - 1) * this.size);
	}

}
